package jdbc.晚串讲;

import jdbc.DBUtil;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class a {
    public static void main(String[] args) {
        try (Connection connection = DBUtil.getConnection();){

            Statement statement = connection.createStatement();

            String sql = "CREATE TABLE u(" +
                    "   id INT PRIMARY KEY AUTO_INCREMENT " +
                    "   name VARCHAR(30) " +
                    "   sex VARCHAR(30) " +
                    ")";
            System.out.println(sql);
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
